package com.example.order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description TODO
 * @Author JFeng
 * @Date 2024/4/20
 */

@FeignClient(value = "stock-service", path = "stock")
public interface StockFeignService {

    @RequestMapping("/reduce/{quantity}")
    public String reduce(@PathVariable("quantity") Integer quantity);

}
